﻿@model EAD_CA3.Models.FixtureData

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fixture Data</legend>

        <div class="display-label">Home Team</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Home_Team)
            @Html.ValidationMessageFor(model => model.Home_Team)
        </div>

        <div class="display-label">Away Team</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Away_Team)
            @Html.ValidationMessageFor(model => model.Away_Team)
        </div>

        <div class="display-label">Division</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Division)
            @Html.ValidationMessageFor(model => model.Division)
        </div>

        <div class="display-label">Fixture Date</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Fixture_Date)
            @Html.ValidationMessageFor(model => model.Fixture_Date)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
